package com.baidb.service2.properties;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.context.annotation.Configuration;

/**
 * @author baidb
 * @date 2021/6/17.
 */
@RefreshScope
@Configuration
@ConfigurationProperties(prefix = "gray")
public class GrayProperties {

    private boolean enableGrayRelease = false;

    public boolean isEnableGrayRelease() {
        return enableGrayRelease;
    }

    public void setEnableGrayRelease(boolean enableGrayRelease) {
        this.enableGrayRelease = enableGrayRelease;
    }
}
